namespace Core {
    export class StageUtils extends BaseClass {

        private static _uiStage: Laya.Box;

        public constructor() {
            super();

            if (StageUtils._uiStage == null) {
                StageUtils._uiStage = new Laya.Box();
                this.getStage().addChild(StageUtils._uiStage);
            }
        }

        public getHeight(): number {
            return Laya.stage.height
        }
        public getWidth(): number {
            return Laya.stage.width
        }
        public getStage(): laya.display.Stage {
            return Laya.stage
        }
        public getUIStage(): Laya.Box {
            return StageUtils._uiStage;
        }
    }
}